﻿using System;

namespace unTroublemaker
{
    internal static class Output
    {
        public static void Error(string message)
        {
            Write(message, ConsoleColor.Red);
        }

        public static void Success(string message)
        {
            Write(message, ConsoleColor.Green);
        }

        public static void Warning(string message)
        {
            Write(message, ConsoleColor.Yellow);
        }

        private static void Write(string message, ConsoleColor color)
        {
            var prevColor = Console.ForegroundColor;
            Console.ForegroundColor = color;
            Console.WriteLine(message);
            Console.ForegroundColor = prevColor;
        }
    }
}